package com.co.utils;

public enum Language {
	SPANISH, ENGLISH, PORTUGUESE;

	public static Language getLanguage(int value) {
		switch (value) {
		case 0:
			return SPANISH;
		case 1:
			return ENGLISH;
		case 2:
			return PORTUGUESE;
		default:
			return getDefaultLanguage();
		}
	}

	public static Language getDefaultLanguage() {
		return SPANISH;
	}
}
